//created by: Justina Lee

Ext.define("MajorProjectSenchaTouch.view.BookMarkedModule.BookMarked", {
    extend: 'Ext.Container',
    xtype: 'bookmarkedpage',
    id: 'bookmarkedView',
    requires:[
    'MajorProjectSenchaTouch.view.BookMarkedModule.BookMarkedDataview'
    ],
    config: {
        cls: 'backgroundRightPanel',
        layout:{
            type:'fit',
            fullscreen:true
        },
        items:[
        {
            xtype: 'toolbar',
            ui: 'light',
            docked: 'top',
            items:[
            //info button (left)
            {
               iconCls: 'info2',
               iconMask: true,
               xtype: 'button',
               action: 'showBookMakedInfo'
            },
            {
                xtype: 'spacer'
            },
            //remove all button (right)
            {
                iconCls: 'trash',
                iconMask: true,
                ui:'normal',
                xtype: 'button',
                text: 'Remove All',
                action: 'clearBookMarkedList'
            }
            ]             
        },
        {
            xtype:'BookMarkedDV'
        }
        ]        
    }
});